import QtQuick 1.0
import Box2D 1.0

Body {
    property alias friction: fixture.friction

    bodyType: Body.Static
    parent: world
    fixtures: Box {
        id: fixture
        anchors.fill: parent
        friction: 1.0
        onBeginContact: {
            if (!dead)
                die();
        }
    }

    Image {
        id: image
        anchors.fill: parent

        fillMode: Image.TileHorizontally
        source: "gfx/nail.png"
    }
}
